package Entity;

import javax.microedition.lcdui.Graphics;

import Main.CObject;

public class Line extends CObject {

	public int xEnd,yEnd;
	public Line(int xF,int yF,int xE,int yE)
	{
		this.x=xF;
		this.y=yF;
		this.xEnd=xE;
		this.yEnd=yE;
	}
	public Line(Point pointFirst,Point PointEnd)
	{
		this.x=pointFirst.x;
		this.y=pointFirst.y;
		this.xEnd=PointEnd.x;
		this.yEnd=PointEnd.y;
	}
	public void update()
	{
		
		move(vx, vy);
		vx=0;vy=0;
	}

	public void paint(Graphics g) {
		// TODO Auto-generated method stub
		g.drawLine(x, y, xEnd, yEnd);
	}

}
